package me.fung.rem.app.common

import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.withStyle
import androidx.compose.ui.unit.sp

@Composable
fun loading(modifier: Modifier) {
    Text(
        buildAnnotatedString {
            withStyle(style = SpanStyle(fontWeight = FontWeight.Bold, fontSize = 64.sp)) {
                withStyle(style = SpanStyle(color = Color.Red)) { append("R") }
                withStyle(style = SpanStyle(color = Color.Green)) { append("e") }
                withStyle(style = SpanStyle(color = Color.Blue)) { append("m") }
                withStyle(style = SpanStyle(color = Color.Black)) { append("^_^") }
            }
        },
        modifier = modifier,
    )
}